package poubelle.html.child;

import poubelle.html.HTMLA;

public class HTMLLink extends HTMLA{

	private String name;
	private String id;
	private String fonctionOnClick;
	private String url;
	private String target;
	
	public String starDraw() {

		setNameWidget(name);
		setIdWidget(id);
		setUrlWidget(url);
		setTargetWidget(target);
		setOnClickWidget(fonctionOnClick);
		return getStartWidget();
	}

	public String endDraw() {

		return getEndWidget();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void addClick(String fonction) {
		// TODO Auto-generated method stub
		this.fonctionOnClick = fonction;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public void setId(String id) {
		this.id = id;
	}
}
